/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.sys.entity.adv;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 乐看系统分类Entity
 * @author 罗天文
 * @version 2018-04-19
 */
public class HkCategoryQuery extends DataEntity<HkCategoryQuery> {
	
	private static final long serialVersionUID = 1L;
	private HkCategory category;		// 分类id 父类
	private String name;		// 名称
	private String style;		// 布局样式
	private String querystyle;		// 查询布局
	private String query;		// 查询接口
	private String rank;		// 序号
	
	public HkCategoryQuery() {
		super();
	}

	public HkCategoryQuery(String id){
		super(id);
	}

	public HkCategoryQuery(HkCategory category){
		this.category = category;
	}

	@Length(min=0, max=32, message="分类id长度必须介于 0 和 32 之间")
	public HkCategory getCategory() {
		return category;
	}

	public void setCategory(HkCategory category) {
		this.category = category;
	}
	
	@Length(min=0, max=50, message="名称长度必须介于 0 和 50 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=1, message="布局样式长度必须介于 0 和 1 之间")
	public String getStyle() {
		return style;
	}

	public void setStyle(String style) {
		this.style = style;
	}
	
	@Length(min=0, max=1, message="查询布局长度必须介于 0 和 1 之间")
	public String getQuerystyle() {
		return querystyle;
	}

	public void setQuerystyle(String querystyle) {
		this.querystyle = querystyle;
	}
	
	@Length(min=0, max=100, message="查询接口长度必须介于 0 和 100 之间")
	public String getQuery() {
		return query;
	}

	public void setQuery(String query) {
		this.query = query;
	}
	
	@Length(min=0, max=11, message="序号长度必须介于 0 和 11 之间")
	public String getRank() {
		return rank;
	}

	public void setRank(String rank) {
		this.rank = rank;
	}
	
}